package com.megic.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Gene
 * @Date 2020/8/8 22:37
 * @Version 1.0
 */
@RestController
@RefreshScope
public class ClientController {

    @Value("${user.name}")
    String username;
    @RequestMapping("/test/test")
    public String test(){
        return username;
    }
}
